3.11.58 \(\int (a+b x)^6 (A+B x) (d+e x) \, dx\) [1058]

Optimal. Leaf size=75 \[ \frac {(A b-a B) (b d-a e) (a+b x)^7}{7 b^3}+\frac {(b B d+A b e-2 a B e) (a+b x)^8}{8 b^3}+\frac {B e (a+b x)^9}{9 b^3} \]

[Out]

1/7*(A*b-B*a)*(-a*e+b*d)*(b*x+a)^7/b^3+1/8*(A*b*e-2*B*a*e+B*b*d)*(b*x+a)^8/b^3+1/9*B*e*(b*x+a)^9/b^3

________________________________________________________________________________________

Rubi [A]
time = 0.14, antiderivative size = 75, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 1, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.056, Rules used = {78} \begin {gather*} \frac {(a+b x)^8 (-2 a B e+A b e+b B d)}{8 b^3}+\frac {(a+b x)^7 (A b-a B) (b d-a e)}{7 b^3}+\frac {B e (a+b x)^9}{9 b^3} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(a + b*x)^6*(A + B*x)*(d + e*x),x]

[Out]

((A*b - a*B)*(b*d - a*e)*(a + b*x)^7)/(7*b^3) + ((b*B*d + A*b*e - 2*a*B*e)*(a + b*x)^8)/(8*b^3) + (B*e*(a + b*
x)^9)/(9*b^3)

Rule 78

Int[((a_.) + (b_.)*(x_))*((c_) + (d_.)*(x_))^(n_.)*((e_.) + (f_.)*(x_))^(p_.), x_Symbol] :> Int[ExpandIntegran
d[(a + b*x)*(c + d*x)^n*(e + f*x)^p, x], x] /; FreeQ[{a, b, c, d, e, f, n}, x] && NeQ[b*c - a*d, 0] && ((ILtQ[
n, 0] && ILtQ[p, 0]) || EqQ[p, 1] || (IGtQ[p, 0] && ( !IntegerQ[n] || LeQ[9*p + 5*(n + 2), 0] || GeQ[n + p + 1
, 0] || (GeQ[n + p + 2, 0] && RationalQ[a, b, c, d, e, f]))))

Rubi steps

\begin {align*} \int (a+b x)^6 (A+B x) (d+e x) \, dx &=\int \left (\frac {(A b-a B) (b d-a e) (a+b x)^6}{b^2}+\frac {(b B d+A b e-2 a B e) (a+b x)^7}{b^2}+\frac {B e (a+b x)^8}{b^2}\right ) \, dx\\ &=\frac {(A b-a B) (b d-a e) (a+b x)^7}{7 b^3}+\frac {(b B d+A b e-2 a B e) (a+b x)^8}{8 b^3}+\frac {B e (a+b x)^9}{9 b^3}\\ \end {align*}

________________________________________________________________________________________

Mathematica [B] Leaf count is larger than twice the leaf count of optimal. \(231\) vs. \(2(75)=150\).
time = 0.10, size = 231, normalized size = 3.08 \begin {gather*} \frac {1}{504} x \left (84 a^6 (3 A (2 d+e x)+B x (3 d+2 e x))+126 a^4 b^2 x^2 (5 A (4 d+3 e x)+3 B x (5 d+4 e x))+252 a^5 b x (B x (4 d+3 e x)+A (6 d+4 e x))+168 a^3 b^3 x^3 (3 A (5 d+4 e x)+2 B x (6 d+5 e x))+36 a^2 b^4 x^4 (7 A (6 d+5 e x)+5 B x (7 d+6 e x))+18 a b^5 x^5 (4 A (7 d+6 e x)+3 B x (8 d+7 e x))+b^6 x^6 (9 A (8 d+7 e x)+7 B x (9 d+8 e x))\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(a + b*x)^6*(A + B*x)*(d + e*x),x]

[Out]

(x*(84*a^6*(3*A*(2*d + e*x) + B*x*(3*d + 2*e*x)) + 126*a^4*b^2*x^2*(5*A*(4*d + 3*e*x) + 3*B*x*(5*d + 4*e*x)) +
 252*a^5*b*x*(B*x*(4*d + 3*e*x) + A*(6*d + 4*e*x)) + 168*a^3*b^3*x^3*(3*A*(5*d + 4*e*x) + 2*B*x*(6*d + 5*e*x))
 + 36*a^2*b^4*x^4*(7*A*(6*d + 5*e*x) + 5*B*x*(7*d + 6*e*x)) + 18*a*b^5*x^5*(4*A*(7*d + 6*e*x) + 3*B*x*(8*d + 7
*e*x)) + b^6*x^6*(9*A*(8*d + 7*e*x) + 7*B*x*(9*d + 8*e*x))))/504

________________________________________________________________________________________

Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(292\) vs. \(2(69)=138\).
time = 0.06, size = 293, normalized size = 3.91

method result size
norman \(\frac {b^{6} B e \,x^{9}}{9}+\left (\frac {1}{8} A \,b^{6} e +\frac {3}{4} B a \,b^{5} e +\frac {1}{8} b^{6} B d \right ) x^{8}+\left (\frac {6}{7} A a \,b^{5} e +\frac {1}{7} A \,b^{6} d +\frac {15}{7} B \,a^{2} b^{4} e +\frac {6}{7} B a \,b^{5} d \right ) x^{7}+\left (\frac {5}{2} A \,a^{2} b^{4} e +A a \,b^{5} d +\frac {10}{3} B \,a^{3} b^{3} e +\frac {5}{2} B \,a^{2} b^{4} d \right ) x^{6}+\left (4 A \,a^{3} b^{3} e +3 A \,a^{2} b^{4} d +3 B \,a^{4} b^{2} e +4 B \,a^{3} b^{3} d \right ) x^{5}+\left (\frac {15}{4} A \,a^{4} b^{2} e +5 A \,a^{3} b^{3} d +\frac {3}{2} B \,a^{5} b e +\frac {15}{4} B \,a^{4} b^{2} d \right ) x^{4}+\left (2 A \,a^{5} b e +5 A \,a^{4} b^{2} d +\frac {1}{3} B \,a^{6} e +2 B \,a^{5} b d \right ) x^{3}+\left (\frac {1}{2} a^{6} A e +3 A \,a^{5} b d +\frac {1}{2} B \,a^{6} d \right ) x^{2}+a^{6} A d x\) \(279\)
default \(\frac {b^{6} B e \,x^{9}}{9}+\frac {\left (\left (b^{6} A +6 a \,b^{5} B \right ) e +b^{6} B d \right ) x^{8}}{8}+\frac {\left (\left (6 a \,b^{5} A +15 a^{2} b^{4} B \right ) e +\left (b^{6} A +6 a \,b^{5} B \right ) d \right ) x^{7}}{7}+\frac {\left (\left (15 a^{2} b^{4} A +20 a^{3} b^{3} B \right ) e +\left (6 a \,b^{5} A +15 a^{2} b^{4} B \right ) d \right ) x^{6}}{6}+\frac {\left (\left (20 a^{3} b^{3} A +15 a^{4} b^{2} B \right ) e +\left (15 a^{2} b^{4} A +20 a^{3} b^{3} B \right ) d \right ) x^{5}}{5}+\frac {\left (\left (15 a^{4} b^{2} A +6 a^{5} b B \right ) e +\left (20 a^{3} b^{3} A +15 a^{4} b^{2} B \right ) d \right ) x^{4}}{4}+\frac {\left (\left (6 a^{5} b A +a^{6} B \right ) e +\left (15 a^{4} b^{2} A +6 a^{5} b B \right ) d \right ) x^{3}}{3}+\frac {\left (a^{6} A e +\left (6 a^{5} b A +a^{6} B \right ) d \right ) x^{2}}{2}+a^{6} A d x\) \(293\)
gosper \(\frac {1}{3} x^{3} B \,a^{6} e +\frac {1}{2} x^{2} a^{6} A e +\frac {1}{2} x^{2} B \,a^{6} d +\frac {1}{7} x^{7} A \,b^{6} d +\frac {1}{8} x^{8} b^{6} B d +\frac {1}{8} x^{8} A \,b^{6} e +\frac {1}{9} b^{6} B e \,x^{9}+a^{6} A d x +x^{6} A a \,b^{5} d +\frac {10}{3} x^{6} B \,a^{3} b^{3} e +\frac {5}{2} x^{6} B \,a^{2} b^{4} d +\frac {15}{4} x^{4} A \,a^{4} b^{2} e +5 x^{4} A \,a^{3} b^{3} d +\frac {3}{2} x^{4} B \,a^{5} b e +\frac {15}{4} x^{4} B \,a^{4} b^{2} d +2 x^{3} A \,a^{5} b e +5 x^{3} A \,a^{4} b^{2} d +2 x^{3} B \,a^{5} b d +3 x^{2} A \,a^{5} b d +4 A \,a^{3} b^{3} e \,x^{5}+3 A \,a^{2} b^{4} d \,x^{5}+3 B \,a^{4} b^{2} e \,x^{5}+4 B \,a^{3} b^{3} d \,x^{5}+\frac {3}{4} x^{8} B a \,b^{5} e +\frac {6}{7} x^{7} A a \,b^{5} e +\frac {15}{7} x^{7} B \,a^{2} b^{4} e +\frac {6}{7} x^{7} B a \,b^{5} d +\frac {5}{2} x^{6} A \,a^{2} b^{4} e\) \(322\)
risch \(\frac {1}{3} x^{3} B \,a^{6} e +\frac {1}{2} x^{2} a^{6} A e +\frac {1}{2} x^{2} B \,a^{6} d +\frac {1}{7} x^{7} A \,b^{6} d +\frac {1}{8} x^{8} b^{6} B d +\frac {1}{8} x^{8} A \,b^{6} e +\frac {1}{9} b^{6} B e \,x^{9}+a^{6} A d x +x^{6} A a \,b^{5} d +\frac {10}{3} x^{6} B \,a^{3} b^{3} e +\frac {5}{2} x^{6} B \,a^{2} b^{4} d +\frac {15}{4} x^{4} A \,a^{4} b^{2} e +5 x^{4} A \,a^{3} b^{3} d +\frac {3}{2} x^{4} B \,a^{5} b e +\frac {15}{4} x^{4} B \,a^{4} b^{2} d +2 x^{3} A \,a^{5} b e +5 x^{3} A \,a^{4} b^{2} d +2 x^{3} B \,a^{5} b d +3 x^{2} A \,a^{5} b d +4 A \,a^{3} b^{3} e \,x^{5}+3 A \,a^{2} b^{4} d \,x^{5}+3 B \,a^{4} b^{2} e \,x^{5}+4 B \,a^{3} b^{3} d \,x^{5}+\frac {3}{4} x^{8} B a \,b^{5} e +\frac {6}{7} x^{7} A a \,b^{5} e +\frac {15}{7} x^{7} B \,a^{2} b^{4} e +\frac {6}{7} x^{7} B a \,b^{5} d +\frac {5}{2} x^{6} A \,a^{2} b^{4} e\) \(322\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((b*x+a)^6*(B*x+A)*(e*x+d),x,method=_RETURNVERBOSE)

[Out]

1/9*b^6*B*e*x^9+1/8*((A*b^6+6*B*a*b^5)*e+b^6*B*d)*x^8+1/7*((6*A*a*b^5+15*B*a^2*b^4)*e+(A*b^6+6*B*a*b^5)*d)*x^7
+1/6*((15*A*a^2*b^4+20*B*a^3*b^3)*e+(6*A*a*b^5+15*B*a^2*b^4)*d)*x^6+1/5*((20*A*a^3*b^3+15*B*a^4*b^2)*e+(15*A*a
^2*b^4+20*B*a^3*b^3)*d)*x^5+1/4*((15*A*a^4*b^2+6*B*a^5*b)*e+(20*A*a^3*b^3+15*B*a^4*b^2)*d)*x^4+1/3*((6*A*a^5*b
+B*a^6)*e+(15*A*a^4*b^2+6*B*a^5*b)*d)*x^3+1/2*(a^6*A*e+(6*A*a^5*b+B*a^6)*d)*x^2+a^6*A*d*x

________________________________________________________________________________________

Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 302 vs. \(2 (73) = 146\).
time = 0.30, size = 302, normalized size = 4.03 \begin {gather*} \frac {1}{9} \, B b^{6} x^{9} e + A a^{6} d x + \frac {1}{8} \, {\left (B b^{6} d + 6 \, B a b^{5} e + A b^{6} e\right )} x^{8} + \frac {1}{7} \, {\left (15 \, B a^{2} b^{4} e + 6 \, A a b^{5} e + {\left (6 \, B a b^{5} + A b^{6}\right )} d\right )} x^{7} + \frac {1}{6} \, {\left (20 \, B a^{3} b^{3} e + 15 \, A a^{2} b^{4} e + 3 \, {\left (5 \, B a^{2} b^{4} + 2 \, A a b^{5}\right )} d\right )} x^{6} + {\left (3 \, B a^{4} b^{2} e + 4 \, A a^{3} b^{3} e + {\left (4 \, B a^{3} b^{3} + 3 \, A a^{2} b^{4}\right )} d\right )} x^{5} + \frac {1}{4} \, {\left (6 \, B a^{5} b e + 15 \, A a^{4} b^{2} e + 5 \, {\left (3 \, B a^{4} b^{2} + 4 \, A a^{3} b^{3}\right )} d\right )} x^{4} + \frac {1}{3} \, {\left (B a^{6} e + 6 \, A a^{5} b e + 3 \, {\left (2 \, B a^{5} b + 5 \, A a^{4} b^{2}\right )} d\right )} x^{3} + \frac {1}{2} \, {\left (A a^{6} e + {\left (B a^{6} + 6 \, A a^{5} b\right )} d\right )} x^{2} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x+a)^6*(B*x+A)*(e*x+d),x, algorithm="maxima")

[Out]

1/9*B*b^6*x^9*e + A*a^6*d*x + 1/8*(B*b^6*d + 6*B*a*b^5*e + A*b^6*e)*x^8 + 1/7*(15*B*a^2*b^4*e + 6*A*a*b^5*e +
(6*B*a*b^5 + A*b^6)*d)*x^7 + 1/6*(20*B*a^3*b^3*e + 15*A*a^2*b^4*e + 3*(5*B*a^2*b^4 + 2*A*a*b^5)*d)*x^6 + (3*B*
a^4*b^2*e + 4*A*a^3*b^3*e + (4*B*a^3*b^3 + 3*A*a^2*b^4)*d)*x^5 + 1/4*(6*B*a^5*b*e + 15*A*a^4*b^2*e + 5*(3*B*a^
4*b^2 + 4*A*a^3*b^3)*d)*x^4 + 1/3*(B*a^6*e + 6*A*a^5*b*e + 3*(2*B*a^5*b + 5*A*a^4*b^2)*d)*x^3 + 1/2*(A*a^6*e +
 (B*a^6 + 6*A*a^5*b)*d)*x^2

________________________________________________________________________________________

Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 301 vs. \(2 (73) = 146\).
time = 0.72, size = 301, normalized size = 4.01 \begin {gather*} \frac {1}{8} \, B b^{6} d x^{8} + A a^{6} d x + \frac {1}{7} \, {\left (6 \, B a b^{5} + A b^{6}\right )} d x^{7} + \frac {1}{2} \, {\left (5 \, B a^{2} b^{4} + 2 \, A a b^{5}\right )} d x^{6} + {\left (4 \, B a^{3} b^{3} + 3 \, A a^{2} b^{4}\right )} d x^{5} + \frac {5}{4} \, {\left (3 \, B a^{4} b^{2} + 4 \, A a^{3} b^{3}\right )} d x^{4} + {\left (2 \, B a^{5} b + 5 \, A a^{4} b^{2}\right )} d x^{3} + \frac {1}{2} \, {\left (B a^{6} + 6 \, A a^{5} b\right )} d x^{2} + \frac {1}{504} \, {\left (56 \, B b^{6} x^{9} + 252 \, A a^{6} x^{2} + 63 \, {\left (6 \, B a b^{5} + A b^{6}\right )} x^{8} + 216 \, {\left (5 \, B a^{2} b^{4} + 2 \, A a b^{5}\right )} x^{7} + 420 \, {\left (4 \, B a^{3} b^{3} + 3 \, A a^{2} b^{4}\right )} x^{6} + 504 \, {\left (3 \, B a^{4} b^{2} + 4 \, A a^{3} b^{3}\right )} x^{5} + 378 \, {\left (2 \, B a^{5} b + 5 \, A a^{4} b^{2}\right )} x^{4} + 168 \, {\left (B a^{6} + 6 \, A a^{5} b\right )} x^{3}\right )} e \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x+a)^6*(B*x+A)*(e*x+d),x, algorithm="fricas")

[Out]

1/8*B*b^6*d*x^8 + A*a^6*d*x + 1/7*(6*B*a*b^5 + A*b^6)*d*x^7 + 1/2*(5*B*a^2*b^4 + 2*A*a*b^5)*d*x^6 + (4*B*a^3*b
^3 + 3*A*a^2*b^4)*d*x^5 + 5/4*(3*B*a^4*b^2 + 4*A*a^3*b^3)*d*x^4 + (2*B*a^5*b + 5*A*a^4*b^2)*d*x^3 + 1/2*(B*a^6
 + 6*A*a^5*b)*d*x^2 + 1/504*(56*B*b^6*x^9 + 252*A*a^6*x^2 + 63*(6*B*a*b^5 + A*b^6)*x^8 + 216*(5*B*a^2*b^4 + 2*
A*a*b^5)*x^7 + 420*(4*B*a^3*b^3 + 3*A*a^2*b^4)*x^6 + 504*(3*B*a^4*b^2 + 4*A*a^3*b^3)*x^5 + 378*(2*B*a^5*b + 5*
A*a^4*b^2)*x^4 + 168*(B*a^6 + 6*A*a^5*b)*x^3)*e

________________________________________________________________________________________

Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 333 vs. \(2 (71) = 142\).
time = 0.03, size = 333, normalized size = 4.44 \begin {gather*} A a^{6} d x + \frac {B b^{6} e x^{9}}{9} + x^{8} \left (\frac {A b^{6} e}{8} + \frac {3 B a b^{5} e}{4} + \frac {B b^{6} d}{8}\right ) + x^{7} \cdot \left (\frac {6 A a b^{5} e}{7} + \frac {A b^{6} d}{7} + \frac {15 B a^{2} b^{4} e}{7} + \frac {6 B a b^{5} d}{7}\right ) + x^{6} \cdot \left (\frac {5 A a^{2} b^{4} e}{2} + A a b^{5} d + \frac {10 B a^{3} b^{3} e}{3} + \frac {5 B a^{2} b^{4} d}{2}\right ) + x^{5} \cdot \left (4 A a^{3} b^{3} e + 3 A a^{2} b^{4} d + 3 B a^{4} b^{2} e + 4 B a^{3} b^{3} d\right ) + x^{4} \cdot \left (\frac {15 A a^{4} b^{2} e}{4} + 5 A a^{3} b^{3} d + \frac {3 B a^{5} b e}{2} + \frac {15 B a^{4} b^{2} d}{4}\right ) + x^{3} \cdot \left (2 A a^{5} b e + 5 A a^{4} b^{2} d + \frac {B a^{6} e}{3} + 2 B a^{5} b d\right ) + x^{2} \left (\frac {A a^{6} e}{2} + 3 A a^{5} b d + \frac {B a^{6} d}{2}\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x+a)**6*(B*x+A)*(e*x+d),x)

[Out]

A*a**6*d*x + B*b**6*e*x**9/9 + x**8*(A*b**6*e/8 + 3*B*a*b**5*e/4 + B*b**6*d/8) + x**7*(6*A*a*b**5*e/7 + A*b**6
*d/7 + 15*B*a**2*b**4*e/7 + 6*B*a*b**5*d/7) + x**6*(5*A*a**2*b**4*e/2 + A*a*b**5*d + 10*B*a**3*b**3*e/3 + 5*B*
a**2*b**4*d/2) + x**5*(4*A*a**3*b**3*e + 3*A*a**2*b**4*d + 3*B*a**4*b**2*e + 4*B*a**3*b**3*d) + x**4*(15*A*a**
4*b**2*e/4 + 5*A*a**3*b**3*d + 3*B*a**5*b*e/2 + 15*B*a**4*b**2*d/4) + x**3*(2*A*a**5*b*e + 5*A*a**4*b**2*d + B
*a**6*e/3 + 2*B*a**5*b*d) + x**2*(A*a**6*e/2 + 3*A*a**5*b*d + B*a**6*d/2)

________________________________________________________________________________________

Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 335 vs. \(2 (73) = 146\).
time = 1.32, size = 335, normalized size = 4.47 \begin {gather*} \frac {1}{9} \, B b^{6} x^{9} e + \frac {1}{8} \, B b^{6} d x^{8} + \frac {3}{4} \, B a b^{5} x^{8} e + \frac {1}{8} \, A b^{6} x^{8} e + \frac {6}{7} \, B a b^{5} d x^{7} + \frac {1}{7} \, A b^{6} d x^{7} + \frac {15}{7} \, B a^{2} b^{4} x^{7} e + \frac {6}{7} \, A a b^{5} x^{7} e + \frac {5}{2} \, B a^{2} b^{4} d x^{6} + A a b^{5} d x^{6} + \frac {10}{3} \, B a^{3} b^{3} x^{6} e + \frac {5}{2} \, A a^{2} b^{4} x^{6} e + 4 \, B a^{3} b^{3} d x^{5} + 3 \, A a^{2} b^{4} d x^{5} + 3 \, B a^{4} b^{2} x^{5} e + 4 \, A a^{3} b^{3} x^{5} e + \frac {15}{4} \, B a^{4} b^{2} d x^{4} + 5 \, A a^{3} b^{3} d x^{4} + \frac {3}{2} \, B a^{5} b x^{4} e + \frac {15}{4} \, A a^{4} b^{2} x^{4} e + 2 \, B a^{5} b d x^{3} + 5 \, A a^{4} b^{2} d x^{3} + \frac {1}{3} \, B a^{6} x^{3} e + 2 \, A a^{5} b x^{3} e + \frac {1}{2} \, B a^{6} d x^{2} + 3 \, A a^{5} b d x^{2} + \frac {1}{2} \, A a^{6} x^{2} e + A a^{6} d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x+a)^6*(B*x+A)*(e*x+d),x, algorithm="giac")

[Out]

1/9*B*b^6*x^9*e + 1/8*B*b^6*d*x^8 + 3/4*B*a*b^5*x^8*e + 1/8*A*b^6*x^8*e + 6/7*B*a*b^5*d*x^7 + 1/7*A*b^6*d*x^7
+ 15/7*B*a^2*b^4*x^7*e + 6/7*A*a*b^5*x^7*e + 5/2*B*a^2*b^4*d*x^6 + A*a*b^5*d*x^6 + 10/3*B*a^3*b^3*x^6*e + 5/2*
A*a^2*b^4*x^6*e + 4*B*a^3*b^3*d*x^5 + 3*A*a^2*b^4*d*x^5 + 3*B*a^4*b^2*x^5*e + 4*A*a^3*b^3*x^5*e + 15/4*B*a^4*b
^2*d*x^4 + 5*A*a^3*b^3*d*x^4 + 3/2*B*a^5*b*x^4*e + 15/4*A*a^4*b^2*x^4*e + 2*B*a^5*b*d*x^3 + 5*A*a^4*b^2*d*x^3
+ 1/3*B*a^6*x^3*e + 2*A*a^5*b*x^3*e + 1/2*B*a^6*d*x^2 + 3*A*a^5*b*d*x^2 + 1/2*A*a^6*x^2*e + A*a^6*d*x

________________________________________________________________________________________

Mupad [B]
time = 0.14, size = 257, normalized size = 3.43 \begin {gather*} x^3\,\left (\frac {B\,a^6\,e}{3}+2\,A\,a^5\,b\,e+2\,B\,a^5\,b\,d+5\,A\,a^4\,b^2\,d\right )+x^7\,\left (\frac {A\,b^6\,d}{7}+\frac {6\,A\,a\,b^5\,e}{7}+\frac {6\,B\,a\,b^5\,d}{7}+\frac {15\,B\,a^2\,b^4\,e}{7}\right )+x^2\,\left (\frac {A\,a^6\,e}{2}+\frac {B\,a^6\,d}{2}+3\,A\,a^5\,b\,d\right )+x^8\,\left (\frac {A\,b^6\,e}{8}+\frac {B\,b^6\,d}{8}+\frac {3\,B\,a\,b^5\,e}{4}\right )+a^2\,b^2\,x^5\,\left (3\,A\,b^2\,d+3\,B\,a^2\,e+4\,A\,a\,b\,e+4\,B\,a\,b\,d\right )+A\,a^6\,d\,x+\frac {B\,b^6\,e\,x^9}{9}+\frac {a^3\,b\,x^4\,\left (20\,A\,b^2\,d+6\,B\,a^2\,e+15\,A\,a\,b\,e+15\,B\,a\,b\,d\right )}{4}+\frac {a\,b^3\,x^6\,\left (6\,A\,b^2\,d+20\,B\,a^2\,e+15\,A\,a\,b\,e+15\,B\,a\,b\,d\right )}{6} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((A + B*x)*(a + b*x)^6*(d + e*x),x)

[Out]

x^3*((B*a^6*e)/3 + 2*A*a^5*b*e + 2*B*a^5*b*d + 5*A*a^4*b^2*d) + x^7*((A*b^6*d)/7 + (6*A*a*b^5*e)/7 + (6*B*a*b^
5*d)/7 + (15*B*a^2*b^4*e)/7) + x^2*((A*a^6*e)/2 + (B*a^6*d)/2 + 3*A*a^5*b*d) + x^8*((A*b^6*e)/8 + (B*b^6*d)/8
+ (3*B*a*b^5*e)/4) + a^2*b^2*x^5*(3*A*b^2*d + 3*B*a^2*e + 4*A*a*b*e + 4*B*a*b*d) + A*a^6*d*x + (B*b^6*e*x^9)/9
 + (a^3*b*x^4*(20*A*b^2*d + 6*B*a^2*e + 15*A*a*b*e + 15*B*a*b*d))/4 + (a*b^3*x^6*(6*A*b^2*d + 20*B*a^2*e + 15*
A*a*b*e + 15*B*a*b*d))/6

________________________________________________________________________________________